cd /home/wwwroot/default/lnpan_queue/liudoumi/;

SUM=5
yun_upload="/home/wwwroot/default/lnpan_queue/liudoumi/yun_upload.php"
proc=`/bin/ps xaww | grep -v " grep" | grep "$yun_upload" |wc -l`
echo $proc
if [ "$proc" -lt "$SUM" ];then
	/usr/bin/php "$yun_upload" &
fi

SUM=10
yun_down="/home/wwwroot/default/lnpan_queue/liudoumi/upyun_down_local.php"
proc=`/bin/ps xaww | grep -v " grep" | grep "$yun_down" |wc -l`
echo $proc
if [ "$proc" -lt "$SUM" ];then
    /usr/bin/php "$yun_down" &
fi
